<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>考题管理</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <link rel="stylesheet" href="./css/common.css">
    <!-- import Vue before Element -->
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <!-- import JavaScript -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="./js/common.js"></script>
</head>
<body>
<div id="app">
    <div>{{json}}</div>
</div>
</body>
<script>
    new Vue({
        el: '#app',
        data: function () {
            return {
                json: ''
            }
        },
        methods: {
            // 获取列表
            exportJson() {
                debugger
                const loading = showLoading(this);

                axios({
                    url: '/export/exportJson',
                    method: 'get',
                    params: {
                    }
                }).then(res => {
                    loading.close();
                    this.json = res.data;
                }).catch(error => {
                    loading.close();
                    console.warn(error)
                })
            },
        },
        mounted: function () {
            this.exportJson()
        },
    })
</script>
</html>